<?php
//--------------------------------------------------
// Patch file:	patch_acp_aucp_rank.php
// Patch time:	Tue, 29 Jan 2008 01:00 pm (GMT)
//--------------------------------------------------
if ( !defined('IN_PHPBB') )
{
	die('Hack attempt');
}

// header
$patch_version = '1.2.0';
$patch_date = '20080128';
$patch_author = 'impleri';
$patch_ref = 'AUCP Rank 1.2.0';

// panels and fields
$patch_data = array(
	'acp' => array(
		'name' => 'Admin_control_panel',
		'options' => array(

			'aucp' => array(
				'name' => 'AUCP',
				'auth' => array(POST_PANELS_URL => 'access'),
				'options' => array(

					'rank' => array(
						'name' => 'aucp_rank_settings',
						'auth' => array(POST_PANELS_URL => 'access'),
						'fields' => array(
							'aucp_rank_mode' => array('type' => 'radio_list', 'legend' => 'aucp_rank_mode', 'options' => array(0 => 'aucp_rank_independent', 1 => 'aucp_rank_replace_rank', 2 => 'aucp_rank_replace_both'), 'field' => 'aucp_rank', 'explain' => 'aucp_rank_explain'),
							'aucp_rank_days' => array('type' => 'int', 'legend' => 'aucp_rank_days', 'field' => 'aucp_rank_days', 'explain' => 'aucp_rank_days_explain'),
							'aucp_rank_posts' => array('type' => 'int', 'legend' => 'aucp_rank_posts', 'field' => 'aucp_rank_posts', 'explain' => 'aucp_rank_posts_explain'),
						),
					),
				),
			),
		),
	),
);

// auths definitions
$patch_auths = array(
	POST_PANELS_URL => array(
		'access' => array(
			GROUP_ADMIN => array('acp.aucp' => true, 'acp.aucp.rank' => true),
		),
	),
);

?>